<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>模态框</title>
		<link rel="stylesheet" href="css/bootstrap.min.css" />
	</head>

	<body>
		<!-- 第一部分
		 <div class="modal" id="myModal" tabindex="-1" role="dialg" aria-labelledby="myLabelledby" aria-hidden="true">
		 	<div class="modal-dialog">
		 		分为头部 身体 和脚部
		 		<div class="modal-content">
		 			<div class="modal-header">
		 				<button type="button" class="close" data-dismiss="modal" aria-label="Colse">
		 					<span aria-hidden="true">&times;</span>
		 				</button>
		 				<h4 class="modal-title" id="myModallabel">Modal title</h4>
		 			</div>
		 			<div class="modal-body">
		 				content
		 			</div>
		 			<div class="modal-footer">
		 				<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
		 				<button type="button" class="btn btn-primary">save</button>
		 			</div>
		 		</div>
		 	</div>
		 </div>-->
		 <!--
		 	data-target="#myModal" id的调用模式,使用它就不用写id了
		 -->
		 <button type="button" class="btn  btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
		 	启动模态框
		 </button>
		 
		 <div class="modal" id="myModal" tabindex="-1" role="dialg" aria-labelledby="myLabelledby" aria-hidden="true">
		 	<div class="modal-dialog">
		 		<!--分为头部 身体 和脚部-->
		 		<div class="modal-content">
		 			<div class="modal-header">
		 				<button type="button" class="close" data-dismiss="modal" aria-label="Colse">
		 					<span aria-hidden="true">&times;</span>
		 				</button>
		 				<h4 class="modal-title" id="myModallabel">Modal title</h4>
		 			</div>
		 			<div class="modal-body">
		 				content
		 			</div>
		 			<div class="modal-footer">
		 				<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
		 				<button type="button" class="btn btn-primary">save</button>
		 			</div>
		 		</div>
		 	</div>
		 </div>
		 <!--
		 	模态框的尺寸
		 -->
		 <button type="button" class="btn btn-primary" date-toggle="modal" data-target=".bs-example-modal-lg">
		 	启动大框
		 </button>
		 <!--
		 	fade 过度效果
		 	role="dialog" 增强访问性
		 -->
		 <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
		 	<div class="modal-dialog modal-lg">
		 		<div class="modal-content">
		 			这是一个大的Modal
		 		</div>
		 	</div>
		 </div>
		 
		  <button type="button" class="btn btn-primary" date-toggle="modal" data-target=".bs-example-modal-sm">
		 	启动小框
		 </button>
		 <!--
		 	fade 过度效果
		 	role="dialog" 增强访问性
		 -->
		 <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
		 	<div class="modal-dialog modal-sm">
		 		<div class="modal-content">
		 			这是一个大的Modal
		 		</div>
		 	</div>
		 </div>
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/bootstrap.min.js"></script>
		<script type="text/javascript">
			/*$("#myModal").modal("show"); 第一部分*/
		</script>
	</body>

</html>